package com.hrt.datasender.mq.model;

import java.util.Date;

/**
 * 
 * @author gislin
 *
 */
public class LogModel extends MqModel {
    /**
     * 
     */
    private static final long serialVersionUID = 1L;

    private Date time;

    private String msg;

    private boolean isError;

    public LogModel(String msg, boolean isError) {
        time = new Date();
        this.msg = msg;
        this.isError = isError;
    }

    @Override
    public int getMqModelType() {
        return MqModel.MODEL_TYPE_DRIVE;
    }

    @Override
    public String toString() {
        return "LogModel{" + "isError=" + isError + ", time=" + time + ", msg='" + msg + '\'' + '}';
    }

    public boolean isError() {
        return isError;
    }

    public void setError(boolean isError) {
        this.isError = isError;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public static long getSerialversionuid() {
        return serialVersionUID;
    }

}
